<%@ page language="java" contentType="text/html;charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>退房结账</title>
</head>
<body>
<div>
	<form action="income/checkout.action" method="post" id="form">
		<div align="center">
		<input type="hidden" id="romeName" name="sRoomName" value="${user.sRoomName}"/>
		<table>
			<tr>
				<td>房号</td>
				<td>${user.sRoomName}</td>
				<td>客户</td>
				<td>${user.sUserName}</td>
			</tr>
			<tr>
				<td>退房结账</td>
				<td><input type="text" id="money" name="dMoney" /></td>
				<td>结账备注</td>
				<td><input type="text" id="message" name="sMessage" value="退房结账"/></td>
			</tr>
			<tr>
				<td >客户意见</td>
				<td colspan="3"><input type="text" id="suggest" name="sSuggest" size="50"/></td>
			</tr>
			<tr><td><input type="button" id="button" value="确定结账" onclick="doButton()"/></td></tr>
		</table>
		</div>
	</form>
</div>
</body>
	<script type="text/javascript" src="js/jquery-3.2.1.js"></script>
	<script type="text/javascript">
		function doButton() {
			if(""==$("#money").val()){
				alert("输入结账金额");
				return false;
			}
			document.getElementById("form").submit();
		}
	</script>
</html>